/**
 * Created by Administrator on 2016/1/27.
 */
var mongoose=require('mongoose');

var UserSchema = new mongoose.Schema({
    name:{type:String,required:true},
    password:{type:String,required:true}
});

mongoose.model('user',UserSchema);

module.exports = {
    getModel: function(modelName){
        return mongoose.model(modelName);
    }
};
